package com.example.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "music-client", url = "https://api.uomg.com")
public interface MusicFeignClient {

    @PostMapping("/api/rand.music")
    String getMusic(@RequestParam("sort") String sort,@RequestParam("format") String format);
}
